.file-warrper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;

  .header-action-card {
    width: 100%;
    height: 53px;
    flex-shrink: 0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .spin-card {
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 16px;
    z-index: 1;
    position: absolute;
  }

  .file-container {
    width: 100%;
    flex-grow: 1;
    overflow: hidden auto;
    position: relative;
    padding: 16px;
  }
}

.file-warrper .header-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  .header-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-action-right {
    align-items: flex-start;
    justify-content: right;
  }
}

.file-warrper .file-icons-warrper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, 140px);
  grid-gap: 16px;

  .file-icon-item {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    padding: 8px;
    position: relative;

    .action {
      left: 6px;
      top: 6px;
      padding: 0px 4px;
      border-radius: 6px;
      z-index: 1;
      position: absolute;
      background-color: #fff;
      opacity: 0;

      .checkbox .ant-checkbox-inner {
        border-width: 2px;
        border-radius: 50%;
      }
    }

    .icon {
      width: 100%;
      // aspect-ratio: 1/1;
      object-fit: contain;
      padding: 8px 24px;
      overflow: hidden;
    }

    .file-info {
      width: 100%;
      height: 40px;

      .file-name {
        width: 100%;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0px 4px;
      }

      .file-time {
        width: 100%;
        text-align: center;
        color: #9e9e9e;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    &:not([data-checked="true"]):hover {
      background-color: rgba($color: #000000, $alpha: 0.1);
      .action {
        opacity: 1;
      }
    }

    &[data-checked="true"] {
      background-color: rgba($color: #1677ff, $alpha: 0.1);
      .action {
        opacity: 1;
      }
    }
  }
}
